package org.ithang.redis;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import redis.clients.jedis.Jedis;

/**
 * 字符数据结构，测试用例
 * @author Administrator
 *
 */
public class JedisStrTest {

	private Jedis jes=null;
	
	@Before
	public void init(){
		jes=new Jedis("192.168.0.180",6379);
	}
	
	@Test
	public void test(){
		jes.set("user:1:name", "james");
	}
	
	@Test
	public void testList(){
		jes.lpush("mylist","aaa","bbb","ccc");
	}
	
	@Test
	public void testSet(){
		
	}
	
	@Test
	public void testZSet(){
		
	}
	
	
	@After
	public void destroy(){
		jes.close();
	}
	
	
}
